const marked = require('marked')

module.exports = source => {
  console.log(source)

  const html = marked(source)
  /** method 1 */
  // const code = `module.exports = ${JSON.stringify(html)}`
  // return code

  /** method 2: pipeline to another loader (configure in webpack.config.js) */
  return html 
}
